package zero.tech.games.logic.common;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class CacheRoom {
	private CacheRoom() {
	}
	private static CacheRoom cache = new CacheRoom();
	public static CacheRoom getCache() {
		return cache;
	}
	private final Map<String, Room> rooms = new ConcurrentHashMap<String, Room>();

	public Map<String, Room> getRooms() {
		return rooms;
	}

	public void removeRoom(Room room) {
		this.rooms.remove(room.getRoom_id());
		room=null;
	}

}
